
<!--banner开始-->
<div class="banner">
	<img src="<?php echo json_decode($banner[0]['path'])[0];?>"/>
</div>
<!--产品中心开始-->
<div class="product">
	<div class="pro_center">
          <p>您的位置:<a href="<?php echo'index.php?c='.C.'&hid='.$hid;?>"><?php echo $curcate['category_name']?></a>>><a href="<?php echo'index.php?c='.C.'&hid='.$hid.'&sid='.$sid;?>"><?php echo $cursec['category_name']?></a></p>
         <div class="pro_content">
        	<div class="pro_left">        	
            	<div class="left_header">
                    <p>p</p>
                    <h6><?php echo $curcate['category_name']?></h6>
                    <span>RODUCT CENTER</span>
             	</div>
            	<ul>
                <?php foreach($secondary as $sec):?>
            		<li <?php if($sid==$sec['id']){echo 'class="this"';}?>><a href="<?php echo'index.php?c='.C.'&hid='.$hid.'&sid='.$sec['id'];?>"><span></span><?php echo $sec['category_name']?><span></span></a></li>
                <?php endforeach ;?>
            	</ul>
            	<img src="<?php echo IMG;?>lianxiren.jpg"/>
                <div class="left_bottom">
                	<img src="<?php echo IMG;?>phone.jpg"/></a>
               		<p>联系我们</p>
                	<span>020-88888888</span>
            	</div>
        	</div>
        	<div class="pro_right">
            	  <ul>


                  <?php foreach($product as $pro):?>
                	   <li>
                    	 <!--  <img src="<?php echo IMG.$pro['img_name'];?>.jpg"/> -->
                       <img src="<?php echo $pro['img_path'][1];?>"/>
                        <span></span><a href="<?php echo'index.php?c=pro_details&hid='.$hid.'&sid='.$sid.'&id='.$pro['id'];?>"><img src="<?php echo IMG;?>search.png"/><b><?php echo $pro['name'].date('Ym',$pro['launch_time']);?></b><span><?php echo $pro['intro'];?></span></a>
                    </li>
                  <?php endforeach ;?>


                </ul>
                  <ol>
                  
                    <?php echo $page;?>
                  </ol>
            </div>
     	</div>
    </div>
</div>

<script type="text/javascript">
  $(".pro_right>ol>li>a").live('click',function(){
    url = $(this).attr('href');

    $.ajax({
      url : url ,

      dataType : 'json',

      success : function(msg){

        $(".pro_right>ol").html(msg.page);

        var len = msg.product.length;

        var list = '';

        for(var i = 0; i<len ; i++){

           list += "<li>";

           list += "<img src='"+msg.product[i].img_path[1]+"' />";

           list += "<span></span>";

           list += "<a href='index.php?c=pro_details&hid="+msg.hid+'&sid='+msg.sid+'&id='+msg.product[i].id+"'><img src='"+msg.img+"search.png'/><b>"+msg.product[i].name+msg.product[i].Ym_time+"</b><span>"+msg.product[i].intro+"</span></a>";

           list += "</li>";

           // return false;

        }
        $(".pro_right>ul").html(list);

        return false;

      }
    })
    return false;
    
  })
</script>